<include file="Inc/html_header" />
<div>
	<form method="post" action="<?php echo U('article/edit');?>" onsubmit="return checkForm();">
        <input type="hidden" name="id" value="<?php echo $info['id'];?>" />
		<table class="table table-bordered table-hover">
            <thead>
                <tr>
                    <th colspan="2">编辑文章</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td width="100" class="tdf">文章分类</td>
                    <td class="mySelect"><?php echo $category_select;?></td>
                </tr>
                <tr>
                    <td class="tdf">文章标题：</td>
                    <td><input class="form-control form-focus input_text" type="text" id="title" name="title" style="width:430px;" value="<?php echo $info['title'];?>" /></td>
                </tr>
                <tr>
                    <td class="tdf">文章作者：</td>
                    <td><input class="form-control form-focus input_text" type="text" id="author" name="author" value="源基因" value="<?php echo $info['author'];?>" /></td>
                </tr>
                <tr>
                    <td class="tdf">文章内容：</td>
                    <td><textarea name="content" id="content" style="width:700px; height:320px;"><?php echo $info['content'];?></textarea></td>
                </tr>
                <tr>
                    <td class="tdf">&nbsp;</td>
                    <td>
                        <input type="submit" value="提交" class="btn btn-primary" />
                        <input type="button" value="返回" class="btn" onclick="backStep();" />
                    </td>
                </tr>
            </tbody>
		</table>
	</form>
</div>
<script type="text/javascript" src="/js/admin/article.js"></script>
<script type="text/javascript" src="/js/libs/kindeditor/kindeditor-min.js"></script>
<script type="text/javascript">
    KindEditor.ready(function(K) {
        K.create('textarea[name="content"]', {
            filterMode : false,
            allowFileManager : true,
            uploadJson : '/kindeditor/upload_image',
            fileManagerJson : '/kindeditor/file_manager',
            afterBlur : function(){ this.sync(); }
        });
    });
</script>
<include file="Inc/html_footer" />